import requests
result = requests.get('https://www.qschina.cn/sites/default/files/qs-rankings-data/cn/2005378.txt')
# print(result.text.encode("utf-8").decode("unicode_escape"))
f = open('./20/results.txt', 'w', encoding='utf-8')
# 转换语言的编码方式
f.write(result.text.encode('utf-8').decode('unicode_escape'))
f.closed
# print(type(result.json()))
# 打印格式
print(type(result.json()['data'][0]['score']))
print(result.json()['data'][0]['score'])

